.class public Lcom/nemustech/regina/DialogCare;
.super Ljava/lang/Object;
.source "DialogCare.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/nemustech/regina/DialogCare$PackageBroadcastReceiver;,
        Lcom/nemustech/regina/DialogCare$RGWRowNumAdapter;,
        Lcom/nemustech/regina/DialogCare$ApptAppAdapter;,
        Lcom/nemustech/regina/DialogCare$WallPaperItemAdapter;,
        Lcom/nemustech/regina/DialogCare$PickLauncherAdapter;,
        Lcom/nemustech/regina/DialogCare$PickWidgetAdapter;
    }
.end annotation


# static fields
.field public static final DIALOG_GALLERY_BASIC:I = 0x0

.field public static final DIALOG_GALLERY_THEME:I = 0x1

.field public static final DIALOG_TYPE_ADD:I = 0x1

.field public static final DIALOG_TYPE_EDIT:I = 0x2

.field public static final DIALOG_TYPE_EDIT_WORKSPACE_NAME:I = 0xb

.field public static final DIALOG_TYPE_INSTALL_TASK:I = 0x9

.field public static final DIALOG_TYPE_MAX_NUM:I = 0xb

.field public static final DIALOG_TYPE_PICK_LAUNCHER:I = 0x8

.field public static final DIALOG_TYPE_PICK_WIDGET:I = 0x3

.field public static final DIALOG_TYPE_PROGRESS:I = 0xa

.field public static final DIALOG_TYPE_SELECT_CLOCK_WIDGET_APP:I = 0xe

.field public static final DIALOG_TYPE_SELECT_HOUR_MODE:I = 0xd

.field public static final DIALOG_TYPE_SELECT_RG_WIDGET_APPT_APP:I = 0x5

.field public static final DIALOG_TYPE_SELECT_RG_WIDGET_ROW:I = 0x6

.field public static final DIALOG_TYPE_SELECT_RG_WIDGET_ROW_HAS_PAGE:I = 0x7

.field public static final DIALOG_TYPE_SELECT_TEMP_UNIT:I = 0xc

.field public static final DIALOG_TYPE_SELECT_WEATHER_UPDATE_PERIOD:I = 0xf

.field public static final DIALOG_TYPE_WALL_PAPER:I = 0x4

.field private static final LOG_FLAG:Z = false

.field private static final TAG:Ljava/lang/String; = "DialogCare"


# instance fields
.field private mAddAndroidWidgetBtn:Landroid/widget/Button;

.field private mAddEditMainLayout:Landroid/widget/LinearLayout;

.field private mAddFolderBtn:Landroid/widget/Button;

.field private mAddReginaWidgetBtn:Landroid/widget/Button;

.field private mAddShortcutBtn:Landroid/widget/Button;

.field private mAddTabLayout:Landroid/widget/LinearLayout;

.field private mAddTabView:Landroid/view/View;

.field private mApptAppAdapter:Lcom/nemustech/regina/DialogCare$ApptAppAdapter;

.field private mCurrentDialogType:I

.field private mDialogArray:Landroid/util/SparseArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/util/SparseArray",
            "<",
            "Landroid/app/Dialog;",
            ">;"
        }
    .end annotation
.end field

.field private mEditNameBtn:Landroid/widget/Button;

.field private mEditTabLayout:Landroid/widget/LinearLayout;

.field private mEditTabView:Landroid/view/View;

.field private mEditWallpaperBtn:Landroid/widget/Button;

.field private mIsEditTabSelected:Z

.field private mLayoutInflater:Landroid/view/LayoutInflater;

.field private mPackageBroadcastReceiver:Lcom/nemustech/regina/DialogCare$PackageBroadcastReceiver;

.field private mPackageIntentFilter:Landroid/content/IntentFilter;

.field private mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

.field private mResCare:Lcom/nemustech/regina/ResourceCare;

.field mRowNum:I


# direct methods
.method public constructor <init>(Lcom/nemustech/regina/ReginaLauncher;)V
    .locals 2
    .parameter "reginaLauncher"

    .prologue
    .line 398
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 399
    iput-object p1, p0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    .line 400
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/DialogCare;->mLayoutInflater:Landroid/view/LayoutInflater;

    .line 401
    invoke-static {p1}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/DialogCare;->mResCare:Lcom/nemustech/regina/ResourceCare;

    .line 402
    new-instance v0, Landroid/util/SparseArray;

    const/16 v1, 0xb

    invoke-direct {v0, v1}, Landroid/util/SparseArray;-><init>(I)V

    iput-object v0, p0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    .line 403
    new-instance v0, Lcom/nemustech/regina/DialogCare$ApptAppAdapter;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/DialogCare$ApptAppAdapter;-><init>(Lcom/nemustech/regina/DialogCare;)V

    iput-object v0, p0, Lcom/nemustech/regina/DialogCare;->mApptAppAdapter:Lcom/nemustech/regina/DialogCare$ApptAppAdapter;

    .line 404
    return-void
.end method

.method static synthetic access$000(Lcom/nemustech/regina/DialogCare;)Landroid/view/LayoutInflater;
    .locals 1
    .parameter "x0"

    .prologue
    .line 38
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare;->mLayoutInflater:Landroid/view/LayoutInflater;

    return-object v0
.end method

.method static synthetic access$100(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/ResourceCare;
    .locals 1
    .parameter "x0"

    .prologue
    .line 38
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare;->mResCare:Lcom/nemustech/regina/ResourceCare;

    return-object v0
.end method

.method static synthetic access$200(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/ReginaLauncher;
    .locals 1
    .parameter "x0"

    .prologue
    .line 38
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    return-object v0
.end method

.method static synthetic access$400(Lcom/nemustech/regina/DialogCare;)Landroid/widget/LinearLayout;
    .locals 1
    .parameter "x0"

    .prologue
    .line 38
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare;->mAddTabLayout:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic access$500(Lcom/nemustech/regina/DialogCare;)Landroid/widget/LinearLayout;
    .locals 1
    .parameter "x0"

    .prologue
    .line 38
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare;->mEditTabLayout:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic access$600(Lcom/nemustech/regina/DialogCare;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 38
    invoke-direct {p0}, Lcom/nemustech/regina/DialogCare;->adjustAddEditDialog()V

    return-void
.end method

.method static synthetic access$702(Lcom/nemustech/regina/DialogCare;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 38
    iput-boolean p1, p0, Lcom/nemustech/regina/DialogCare;->mIsEditTabSelected:Z

    return p1
.end method

.method static synthetic access$800(Lcom/nemustech/regina/DialogCare;I)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 38
    invoke-direct {p0, p1}, Lcom/nemustech/regina/DialogCare;->dismissDialog(I)V

    return-void
.end method

.method static synthetic access$900(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/DialogCare$ApptAppAdapter;
    .locals 1
    .parameter "x0"

    .prologue
    .line 38
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare;->mApptAppAdapter:Lcom/nemustech/regina/DialogCare$ApptAppAdapter;

    return-object v0
.end method

.method private adjustAddEditDialog()V
    .locals 5

    .prologue
    const v4, 0x7f060079

    .line 913
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mAddTabLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v1

    if-nez v1, :cond_1

    .line 914
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mAddEditMainLayout:Landroid/widget/LinearLayout;

    const v2, 0x7f020002

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 915
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mResCare:Lcom/nemustech/regina/ResourceCare;

    invoke-virtual {v1, v4}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v1

    iget-object v2, p0, Lcom/nemustech/regina/DialogCare;->mResCare:Lcom/nemustech/regina/ResourceCare;

    const v3, 0x7f060082

    invoke-virtual {v2, v3}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v2

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 918
    .local v0, ll:Landroid/widget/LinearLayout$LayoutParams;
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mAddTabView:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 920
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    .end local v0           #ll:Landroid/widget/LinearLayout$LayoutParams;
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mResCare:Lcom/nemustech/regina/ResourceCare;

    invoke-virtual {v1, v4}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v1

    iget-object v2, p0, Lcom/nemustech/regina/DialogCare;->mResCare:Lcom/nemustech/regina/ResourceCare;

    const v3, 0x7f060085

    invoke-virtual {v2, v3}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v2

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 923
    .restart local v0       #ll:Landroid/widget/LinearLayout$LayoutParams;
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mEditTabView:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 936
    .end local v0           #ll:Landroid/widget/LinearLayout$LayoutParams;
    :cond_0
    :goto_0
    return-void

    .line 924
    :cond_1
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mEditTabLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v1

    if-nez v1, :cond_0

    .line 925
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mAddEditMainLayout:Landroid/widget/LinearLayout;

    const v2, 0x7f020042

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 926
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mResCare:Lcom/nemustech/regina/ResourceCare;

    invoke-virtual {v1, v4}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v1

    iget-object v2, p0, Lcom/nemustech/regina/DialogCare;->mResCare:Lcom/nemustech/regina/ResourceCare;

    const v3, 0x7f060083

    invoke-virtual {v2, v3}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v2

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 929
    .restart local v0       #ll:Landroid/widget/LinearLayout$LayoutParams;
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mAddTabView:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 931
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    .end local v0           #ll:Landroid/widget/LinearLayout$LayoutParams;
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mResCare:Lcom/nemustech/regina/ResourceCare;

    invoke-virtual {v1, v4}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v1

    iget-object v2, p0, Lcom/nemustech/regina/DialogCare;->mResCare:Lcom/nemustech/regina/ResourceCare;

    const v3, 0x7f060084

    invoke-virtual {v2, v3}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v2

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 934
    .restart local v0       #ll:Landroid/widget/LinearLayout$LayoutParams;
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mEditTabView:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0
.end method

.method private createPickLauncherTitleView()Landroid/view/View;
    .locals 7

    .prologue
    const/4 v6, 0x0

    .line 939
    iget-object v4, p0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncher;->getLayoutInflater()Landroid/view/LayoutInflater;

    move-result-object v1

    .line 940
    .local v1, inflator:Landroid/view/LayoutInflater;
    const v4, 0x7f030004

    invoke-virtual {v1, v4, v6}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    .line 943
    .local v3, view:Landroid/view/View;
    const v4, 0x7f090012

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 944
    .local v2, titleTextView:Landroid/widget/TextView;
    iget-object v4, p0, Lcom/nemustech/regina/DialogCare;->mResCare:Lcom/nemustech/regina/ResourceCare;

    const v5, 0x1080027

    invoke-virtual {v4, v5}, Lcom/nemustech/regina/ResourceCare;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    invoke-virtual {v2, v4, v6, v6, v6}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    .line 946
    const v4, 0x7f090013

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 947
    .local v0, DescriptionTextView:Landroid/widget/TextView;
    const v4, 0x7f07004f

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(I)V

    .line 948
    const v4, 0x7f070050

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setText(I)V

    .line 949
    return-object v3
.end method

.method private dismissDialog(I)V
    .locals 3
    .parameter "dialogType"

    .prologue
    .line 955
    :try_start_0
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1, p1}, Lcom/nemustech/regina/ReginaLauncher;->dismissDialog(I)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0

    .line 960
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    invoke-virtual {v1, p1}, Landroid/util/SparseArray;->remove(I)V

    .line 962
    :goto_0
    return-void

    .line 956
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 958
    .local v0, e:Ljava/lang/IllegalArgumentException;
    :try_start_1
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    invoke-virtual {v1, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/app/Dialog;

    invoke-virtual {v1}, Landroid/app/Dialog;->dismiss()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 960
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    invoke-virtual {v1, p1}, Landroid/util/SparseArray;->remove(I)V

    goto :goto_0

    .end local v0           #e:Ljava/lang/IllegalArgumentException;
    :catchall_0
    move-exception v1

    iget-object v2, p0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    invoke-virtual {v2, p1}, Landroid/util/SparseArray;->remove(I)V

    throw v1
.end method


# virtual methods
.method public changeDialogType(I)V
    .locals 3
    .parameter "type"

    .prologue
    const/4 v2, 0x4

    const/4 v1, 0x0

    .line 890
    packed-switch p1, :pswitch_data_0

    .line 902
    :goto_0
    return-void

    .line 892
    :pswitch_0
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare;->mAddTabLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 893
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare;->mEditTabLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 894
    invoke-direct {p0}, Lcom/nemustech/regina/DialogCare;->adjustAddEditDialog()V

    goto :goto_0

    .line 897
    :pswitch_1
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare;->mAddTabLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 898
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare;->mEditTabLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 899
    invoke-direct {p0}, Lcom/nemustech/regina/DialogCare;->adjustAddEditDialog()V

    goto :goto_0

    .line 890
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public closeCurrentDialog()V
    .locals 3

    .prologue
    .line 439
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    invoke-virtual {v1}, Landroid/util/SparseArray;->size()I

    move-result v1

    if-lez v1, :cond_0

    .line 440
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    iget v2, p0, Lcom/nemustech/regina/DialogCare;->mCurrentDialogType:I

    invoke-virtual {v1, v2}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/Dialog;

    .line 441
    .local v0, dlg:Landroid/app/Dialog;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_0

    .line 442
    invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V

    .line 443
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    iget v2, p0, Lcom/nemustech/regina/DialogCare;->mCurrentDialogType:I

    invoke-virtual {v1, v2}, Landroid/util/SparseArray;->remove(I)V

    .line 446
    .end local v0           #dlg:Landroid/app/Dialog;
    :cond_0
    return-void
.end method

.method public createDialog(I)Landroid/app/Dialog;
    .locals 30
    .parameter "type"

    .prologue
    .line 456
    packed-switch p1, :pswitch_data_0

    .line 886
    :pswitch_0
    const/16 v27, 0x0

    :goto_0
    return-object v27

    .line 480
    :pswitch_1
    new-instance v9, Landroid/app/Dialog;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v27, v0

    const/high16 v28, 0x7f08

    move-object v0, v9

    move-object/from16 v1, v27

    move/from16 v2, v28

    invoke-direct {v0, v1, v2}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    .line 481
    .local v9, dlg:Landroid/app/Dialog;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mLayoutInflater:Landroid/view/LayoutInflater;

    move-object/from16 v27, v0

    const v28, 0x7f030001

    const/16 v29, 0x0

    invoke-virtual/range {v27 .. v29}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v15

    .line 482
    .local v15, mainView:Landroid/view/View;
    const v27, 0x7f090004

    move-object v0, v15

    move/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    move-object v0, v5

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/DialogCare;->mAddEditMainLayout:Landroid/widget/LinearLayout;

    .line 483
    const v27, 0x7f090005

    move-object v0, v15

    move/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v27

    move-object/from16 v0, v27

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/DialogCare;->mAddTabView:Landroid/view/View;

    .line 484
    const v27, 0x7f090006

    move-object v0, v15

    move/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v27

    move-object/from16 v0, v27

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/DialogCare;->mEditTabView:Landroid/view/View;

    .line 485
    const v27, 0x7f090007

    move-object v0, v15

    move/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    move-object v0, v5

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/DialogCare;->mAddTabLayout:Landroid/widget/LinearLayout;

    .line 486
    const v27, 0x7f09000c

    move-object v0, v15

    move/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    move-object v0, v5

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/DialogCare;->mEditTabLayout:Landroid/widget/LinearLayout;

    .line 487
    const v27, 0x7f090008

    move-object v0, v15

    move/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/Button;

    move-object v0, v5

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/DialogCare;->mAddReginaWidgetBtn:Landroid/widget/Button;

    .line 488
    const v27, 0x7f090009

    move-object v0, v15

    move/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/Button;

    move-object v0, v5

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/DialogCare;->mAddAndroidWidgetBtn:Landroid/widget/Button;

    .line 489
    const v27, 0x7f09000a

    move-object v0, v15

    move/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/Button;

    move-object v0, v5

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/DialogCare;->mAddShortcutBtn:Landroid/widget/Button;

    .line 490
    const v27, 0x7f09000b

    move-object v0, v15

    move/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/Button;

    move-object v0, v5

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/DialogCare;->mAddFolderBtn:Landroid/widget/Button;

    .line 491
    const v27, 0x7f09000d

    move-object v0, v15

    move/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/Button;

    move-object v0, v5

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/DialogCare;->mEditWallpaperBtn:Landroid/widget/Button;

    .line 492
    const v27, 0x7f09000e

    move-object v0, v15

    move/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/Button;

    move-object v0, v5

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/DialogCare;->mEditNameBtn:Landroid/widget/Button;

    .line 494
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mAddTabView:Landroid/view/View;

    move-object/from16 v27, v0

    new-instance v28, Lcom/nemustech/regina/DialogCare$1;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/DialogCare$1;-><init>(Lcom/nemustech/regina/DialogCare;)V

    invoke-virtual/range {v27 .. v28}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 506
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mEditTabView:Landroid/view/View;

    move-object/from16 v27, v0

    new-instance v28, Lcom/nemustech/regina/DialogCare$2;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/DialogCare$2;-><init>(Lcom/nemustech/regina/DialogCare;)V

    invoke-virtual/range {v27 .. v28}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 518
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mAddReginaWidgetBtn:Landroid/widget/Button;

    move-object/from16 v27, v0

    new-instance v28, Lcom/nemustech/regina/DialogCare$3;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/DialogCare$3;-><init>(Lcom/nemustech/regina/DialogCare;)V

    invoke-virtual/range {v27 .. v28}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 526
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mAddAndroidWidgetBtn:Landroid/widget/Button;

    move-object/from16 v27, v0

    new-instance v28, Lcom/nemustech/regina/DialogCare$4;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/DialogCare$4;-><init>(Lcom/nemustech/regina/DialogCare;)V

    invoke-virtual/range {v27 .. v28}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 534
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mAddShortcutBtn:Landroid/widget/Button;

    move-object/from16 v27, v0

    new-instance v28, Lcom/nemustech/regina/DialogCare$5;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/DialogCare$5;-><init>(Lcom/nemustech/regina/DialogCare;)V

    invoke-virtual/range {v27 .. v28}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 542
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mAddFolderBtn:Landroid/widget/Button;

    move-object/from16 v27, v0

    new-instance v28, Lcom/nemustech/regina/DialogCare$6;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/DialogCare$6;-><init>(Lcom/nemustech/regina/DialogCare;)V

    invoke-virtual/range {v27 .. v28}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 555
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mEditWallpaperBtn:Landroid/widget/Button;

    move-object/from16 v27, v0

    new-instance v28, Lcom/nemustech/regina/DialogCare$7;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/DialogCare$7;-><init>(Lcom/nemustech/regina/DialogCare;)V

    invoke-virtual/range {v27 .. v28}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 563
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mEditNameBtn:Landroid/widget/Button;

    move-object/from16 v27, v0

    new-instance v28, Lcom/nemustech/regina/DialogCare$8;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/DialogCare$8;-><init>(Lcom/nemustech/regina/DialogCare;)V

    invoke-virtual/range {v27 .. v28}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 577
    invoke-virtual/range {p0 .. p1}, Lcom/nemustech/regina/DialogCare;->changeDialogType(I)V

    .line 578
    invoke-virtual {v9, v15}, Landroid/app/Dialog;->setContentView(Landroid/view/View;)V

    .line 580
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    move-object/from16 v27, v0

    const/16 v28, 0x1

    move-object/from16 v0, v27

    move/from16 v1, v28

    move-object v2, v9

    invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    move-object/from16 v27, v9

    .line 581
    goto/16 :goto_0

    .line 583
    .end local v9           #dlg:Landroid/app/Dialog;
    .end local v15           #mainView:Landroid/view/View;
    :pswitch_2
    new-instance v27, Landroid/app/AlertDialog$Builder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v28, v0

    invoke-direct/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v28, 0x7f070051

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    new-instance v28, Lcom/nemustech/regina/DialogCare$PickWidgetAdapter;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/DialogCare$PickWidgetAdapter;-><init>(Lcom/nemustech/regina/DialogCare;)V

    new-instance v29, Lcom/nemustech/regina/DialogCare$9;

    invoke-direct/range {v29 .. v30}, Lcom/nemustech/regina/DialogCare$9;-><init>(Lcom/nemustech/regina/DialogCare;)V

    invoke-virtual/range {v27 .. v29}, Landroid/app/AlertDialog$Builder;->setAdapter(Landroid/widget/ListAdapter;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    invoke-virtual/range {v27 .. v27}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v9

    .line 594
    .restart local v9       #dlg:Landroid/app/Dialog;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    move-object/from16 v27, v0

    const/16 v28, 0x3

    move-object/from16 v0, v27

    move/from16 v1, v28

    move-object v2, v9

    invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    move-object/from16 v27, v9

    .line 595
    goto/16 :goto_0

    .line 597
    .end local v9           #dlg:Landroid/app/Dialog;
    :pswitch_3
    new-instance v27, Landroid/app/AlertDialog$Builder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v28, v0

    invoke-direct/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v28, 0x7f070017

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    new-instance v28, Lcom/nemustech/regina/DialogCare$WallPaperItemAdapter;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/DialogCare$WallPaperItemAdapter;-><init>(Lcom/nemustech/regina/DialogCare;)V

    new-instance v29, Lcom/nemustech/regina/DialogCare$10;

    invoke-direct/range {v29 .. v30}, Lcom/nemustech/regina/DialogCare$10;-><init>(Lcom/nemustech/regina/DialogCare;)V

    invoke-virtual/range {v27 .. v29}, Landroid/app/AlertDialog$Builder;->setAdapter(Landroid/widget/ListAdapter;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    invoke-virtual/range {v27 .. v27}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v9

    .line 656
    .restart local v9       #dlg:Landroid/app/Dialog;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    move-object/from16 v27, v0

    const/16 v28, 0x4

    move-object/from16 v0, v27

    move/from16 v1, v28

    move-object v2, v9

    invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    move-object/from16 v27, v9

    .line 657
    goto/16 :goto_0

    .line 660
    .end local v9           #dlg:Landroid/app/Dialog;
    :pswitch_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v27, v0

    const/16 v28, 0x6

    invoke-virtual/range {v27 .. v28}, Lcom/nemustech/regina/ReginaLauncher;->removeDialog(I)V

    .line 661
    new-instance v16, Lcom/nemustech/regina/DialogCare$RGWRowNumAdapter;

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/DialogCare;->mRowNum:I

    move/from16 v27, v0

    move-object/from16 v0, v16

    move-object/from16 v1, p0

    move/from16 v2, v27

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/DialogCare$RGWRowNumAdapter;-><init>(Lcom/nemustech/regina/DialogCare;I)V

    .line 662
    .local v16, noPpageAdapter:Lcom/nemustech/regina/DialogCare$RGWRowNumAdapter;
    new-instance v27, Landroid/app/AlertDialog$Builder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v28, v0

    invoke-direct/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v28, 0x7f02000a

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    const v28, 0x7f070023

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    new-instance v28, Lcom/nemustech/regina/DialogCare$12;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    move-object/from16 v2, v16

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/DialogCare$12;-><init>(Lcom/nemustech/regina/DialogCare;Lcom/nemustech/regina/DialogCare$RGWRowNumAdapter;)V

    move-object/from16 v0, v27

    move-object/from16 v1, v16

    move-object/from16 v2, v28

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setAdapter(Landroid/widget/ListAdapter;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    new-instance v28, Lcom/nemustech/regina/DialogCare$11;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/DialogCare$11;-><init>(Lcom/nemustech/regina/DialogCare;)V

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    invoke-virtual/range {v27 .. v27}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v9

    .line 683
    .restart local v9       #dlg:Landroid/app/Dialog;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    move-object/from16 v27, v0

    const/16 v28, 0x6

    move-object/from16 v0, v27

    move/from16 v1, v28

    move-object v2, v9

    invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    move-object/from16 v27, v9

    .line 684
    goto/16 :goto_0

    .line 687
    .end local v9           #dlg:Landroid/app/Dialog;
    .end local v16           #noPpageAdapter:Lcom/nemustech/regina/DialogCare$RGWRowNumAdapter;
    :pswitch_5
    new-instance v17, Lcom/nemustech/regina/DialogCare$RGWRowNumAdapter;

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/DialogCare;->mRowNum:I

    move/from16 v27, v0

    move-object/from16 v0, v17

    move-object/from16 v1, p0

    move/from16 v2, v27

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/DialogCare$RGWRowNumAdapter;-><init>(Lcom/nemustech/regina/DialogCare;I)V

    .line 688
    .local v17, pageAdapter:Lcom/nemustech/regina/DialogCare$RGWRowNumAdapter;
    new-instance v27, Landroid/app/AlertDialog$Builder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v28, v0

    invoke-direct/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v28, 0x7f02000a

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    const v28, 0x7f070023

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    new-instance v28, Lcom/nemustech/regina/DialogCare$14;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    move-object/from16 v2, v17

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/DialogCare$14;-><init>(Lcom/nemustech/regina/DialogCare;Lcom/nemustech/regina/DialogCare$RGWRowNumAdapter;)V

    move-object/from16 v0, v27

    move-object/from16 v1, v17

    move-object/from16 v2, v28

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setAdapter(Landroid/widget/ListAdapter;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    new-instance v28, Lcom/nemustech/regina/DialogCare$13;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/DialogCare$13;-><init>(Lcom/nemustech/regina/DialogCare;)V

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    invoke-virtual/range {v27 .. v27}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v9

    .line 709
    .restart local v9       #dlg:Landroid/app/Dialog;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    move-object/from16 v27, v0

    const/16 v28, 0x7

    move-object/from16 v0, v27

    move/from16 v1, v28

    move-object v2, v9

    invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    move-object/from16 v27, v9

    .line 710
    goto/16 :goto_0

    .line 713
    .end local v9           #dlg:Landroid/app/Dialog;
    .end local v17           #pageAdapter:Lcom/nemustech/regina/DialogCare$RGWRowNumAdapter;
    :pswitch_6
    new-instance v14, Landroid/content/Intent;

    const-string v27, "android.intent.action.MAIN"

    const/16 v28, 0x0

    move-object v0, v14

    move-object/from16 v1, v27

    move-object/from16 v2, v28

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 714
    .local v14, launcherIntent:Landroid/content/Intent;
    const-string v27, "android.intent.category.HOME"

    move-object v0, v14

    move-object/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    .line 715
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v27, v0

    invoke-virtual/range {v27 .. v27}, Lcom/nemustech/regina/ReginaLauncher;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v27

    const/16 v28, 0x0

    move-object/from16 v0, v27

    move-object v1, v14

    move/from16 v2, v28

    invoke-virtual {v0, v1, v2}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;

    move-result-object v5

    .line 717
    .local v5, apps:Ljava/util/List;,"Ljava/util/List<Landroid/content/pm/ResolveInfo;>;"
    new-instance v27, Landroid/app/AlertDialog$Builder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v28, v0

    invoke-direct/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-direct/range {p0 .. p0}, Lcom/nemustech/regina/DialogCare;->createPickLauncherTitleView()Landroid/view/View;

    move-result-object v28

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setCustomTitle(Landroid/view/View;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    new-instance v28, Lcom/nemustech/regina/DialogCare$PickLauncherAdapter;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    move-object v2, v5

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/DialogCare$PickLauncherAdapter;-><init>(Lcom/nemustech/regina/DialogCare;Ljava/util/List;)V

    new-instance v29, Lcom/nemustech/regina/DialogCare$15;

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    move-object v2, v5

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/DialogCare$15;-><init>(Lcom/nemustech/regina/DialogCare;Ljava/util/List;)V

    invoke-virtual/range {v27 .. v29}, Landroid/app/AlertDialog$Builder;->setAdapter(Landroid/widget/ListAdapter;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    invoke-virtual/range {v27 .. v27}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v9

    .line 739
    .restart local v9       #dlg:Landroid/app/Dialog;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    move-object/from16 v27, v0

    const/16 v28, 0x8

    move-object/from16 v0, v27

    move/from16 v1, v28

    move-object v2, v9

    invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    move-object/from16 v27, v9

    .line 740
    goto/16 :goto_0

    .line 743
    .end local v5           #apps:Ljava/util/List;,"Ljava/util/List<Landroid/content/pm/ResolveInfo;>;"
    .end local v9           #dlg:Landroid/app/Dialog;
    .end local v14           #launcherIntent:Landroid/content/Intent;
    :pswitch_7
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v27, v0

    invoke-virtual/range {v27 .. v27}, Lcom/nemustech/regina/ReginaLauncher;->getSettedClockWidget()Lcom/nemustech/regina/widgets/clock/ClockWidget;

    move-result-object v23

    .line 744
    .local v23, widget:Lcom/nemustech/regina/widgets/clock/ClockWidget;
    const/4 v8, 0x0

    .line 745
    .local v8, currentTempUnit:I
    if-eqz v23, :cond_0

    invoke-virtual/range {v23 .. v23}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getTempUnit()I

    move-result v8

    .line 746
    :cond_0
    const/16 v27, 0x2

    move/from16 v0, v27

    new-array v0, v0, [Ljava/lang/String;

    move-object/from16 v20, v0

    const/16 v27, 0x0

    const-string v28, "Fahrenheit"

    aput-object v28, v20, v27

    const/16 v27, 0x1

    const-string v28, "Celsius"

    aput-object v28, v20, v27

    .line 748
    .local v20, tempUnits:[Ljava/lang/String;
    new-instance v27, Landroid/app/AlertDialog$Builder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v28, v0

    invoke-direct/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const-string v28, "Elegir unidad de temperatura"

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    const v28, 0x7f02000a

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    new-instance v28, Lcom/nemustech/regina/DialogCare$16;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    move-object/from16 v2, v23

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/DialogCare$16;-><init>(Lcom/nemustech/regina/DialogCare;Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    move-object/from16 v0, v27

    move-object/from16 v1, v20

    move v2, v8

    move-object/from16 v3, v28

    invoke-virtual {v0, v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setSingleChoiceItems([Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    invoke-virtual/range {v27 .. v27}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v9

    .line 757
    .restart local v9       #dlg:Landroid/app/Dialog;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    move-object/from16 v27, v0

    const/16 v28, 0xc

    move-object/from16 v0, v27

    move/from16 v1, v28

    move-object v2, v9

    invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    move-object/from16 v27, v9

    .line 758
    goto/16 :goto_0

    .line 761
    .end local v8           #currentTempUnit:I
    .end local v9           #dlg:Landroid/app/Dialog;
    .end local v20           #tempUnits:[Ljava/lang/String;
    .end local v23           #widget:Lcom/nemustech/regina/widgets/clock/ClockWidget;
    :pswitch_8
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v27, v0

    invoke-virtual/range {v27 .. v27}, Lcom/nemustech/regina/ReginaLauncher;->getSettedClockWidget()Lcom/nemustech/regina/widgets/clock/ClockWidget;

    move-result-object v24

    .line 762
    .local v24, widget1:Lcom/nemustech/regina/widgets/clock/ClockWidget;
    const/4 v7, 0x1

    .line 763
    .local v7, currentHourMode:I
    if-eqz v24, :cond_1

    invoke-virtual/range {v24 .. v24}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getHourMode()Z

    move-result v27

    if-eqz v27, :cond_2

    const/16 v27, 0x1

    move/from16 v7, v27

    .line 764
    :cond_1
    :goto_1
    const/16 v27, 0x2

    move/from16 v0, v27

    new-array v0, v0, [Ljava/lang/String;

    move-object v12, v0

    const/16 v27, 0x0

    const-string v28, "12 Hour mode"

    aput-object v28, v12, v27

    const/16 v27, 0x1

    const-string v28, "24 Hour mode"

    aput-object v28, v12, v27

    .line 766
    .local v12, hourModes:[Ljava/lang/String;
    new-instance v27, Landroid/app/AlertDialog$Builder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v28, v0

    invoke-direct/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const-string v28, "Elegir modo de horas"

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    const v28, 0x7f02000a

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    new-instance v28, Lcom/nemustech/regina/DialogCare$17;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    move-object/from16 v2, v24

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/DialogCare$17;-><init>(Lcom/nemustech/regina/DialogCare;Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    move-object/from16 v0, v27

    move-object v1, v12

    move v2, v7

    move-object/from16 v3, v28

    invoke-virtual {v0, v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setSingleChoiceItems([Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    invoke-virtual/range {v27 .. v27}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v9

    .line 776
    .restart local v9       #dlg:Landroid/app/Dialog;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    move-object/from16 v27, v0

    const/16 v28, 0xd

    move-object/from16 v0, v27

    move/from16 v1, v28

    move-object v2, v9

    invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    move-object/from16 v27, v9

    .line 777
    goto/16 :goto_0

    .line 763
    .end local v9           #dlg:Landroid/app/Dialog;
    .end local v12           #hourModes:[Ljava/lang/String;
    :cond_2
    const/16 v27, 0x0

    move/from16 v7, v27

    goto :goto_1

    .line 781
    .end local v7           #currentHourMode:I
    .end local v24           #widget1:Lcom/nemustech/regina/widgets/clock/ClockWidget;
    :pswitch_9
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v27, v0

    invoke-virtual/range {v27 .. v27}, Lcom/nemustech/regina/ReginaLauncher;->getSettedClockWidget()Lcom/nemustech/regina/widgets/clock/ClockWidget;

    move-result-object v25

    .line 783
    .local v25, widget2:Lcom/nemustech/regina/widgets/clock/ClockWidget;
    const/4 v13, 0x1

    .line 784
    .local v13, initialValue:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v27, v0

    invoke-virtual/range {v27 .. v27}, Lcom/nemustech/regina/ReginaLauncher;->getWeatherUpdatePeriod()J

    move-result-wide v27

    invoke-static/range {v27 .. v28}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getIndexOfPeriodValue(J)I

    move-result v18

    .line 785
    .local v18, periodIndex:I
    if-ltz v18, :cond_3

    move/from16 v13, v18

    .line 787
    :cond_3
    new-instance v27, Landroid/app/AlertDialog$Builder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v28, v0

    invoke-direct/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const-string v28, "Elegir periodo de actualizaciones"

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    const v28, 0x7f02000a

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    sget-object v28, Lcom/nemustech/regina/widgets/clock/ClockWidget;->UPDATE_PREIOD_STRINGS:[Ljava/lang/String;

    new-instance v29, Lcom/nemustech/regina/DialogCare$18;

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    move-object/from16 v2, v25

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/DialogCare$18;-><init>(Lcom/nemustech/regina/DialogCare;Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    move-object/from16 v0, v27

    move-object/from16 v1, v28

    move v2, v13

    move-object/from16 v3, v29

    invoke-virtual {v0, v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setSingleChoiceItems([Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    invoke-virtual/range {v27 .. v27}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v9

    .line 806
    .restart local v9       #dlg:Landroid/app/Dialog;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    move-object/from16 v27, v0

    const/16 v28, 0xf

    move-object/from16 v0, v27

    move/from16 v1, v28

    move-object v2, v9

    invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    move-object/from16 v27, v9

    .line 807
    goto/16 :goto_0

    .line 811
    .end local v9           #dlg:Landroid/app/Dialog;
    .end local v13           #initialValue:I
    .end local v18           #periodIndex:I
    .end local v25           #widget2:Lcom/nemustech/regina/widgets/clock/ClockWidget;
    :pswitch_a
    new-instance v27, Landroid/app/AlertDialog$Builder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v28, v0

    invoke-direct/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v28, 0x108009b

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    const v28, 0x7f07001b

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    const v28, 0x7f07001c

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    const v28, 0x7f07001e

    new-instance v29, Lcom/nemustech/regina/DialogCare$19;

    invoke-direct/range {v29 .. v30}, Lcom/nemustech/regina/DialogCare$19;-><init>(Lcom/nemustech/regina/DialogCare;)V

    invoke-virtual/range {v27 .. v29}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    invoke-virtual/range {v27 .. v27}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v9

    .line 821
    .restart local v9       #dlg:Landroid/app/Dialog;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    move-object/from16 v27, v0

    const/16 v28, 0x9

    move-object/from16 v0, v27

    move/from16 v1, v28

    move-object v2, v9

    invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    move-object/from16 v27, v9

    .line 822
    goto/16 :goto_0

    .line 825
    .end local v9           #dlg:Landroid/app/Dialog;
    :pswitch_b
    new-instance v19, Landroid/app/ProgressDialog;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v27, v0

    move-object/from16 v0, v19

    move-object/from16 v1, v27

    invoke-direct {v0, v1}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    .line 826
    .local v19, progressDialog:Landroid/app/ProgressDialog;
    const v27, 0x7f070075

    move-object/from16 v0, v19

    move/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setTitle(I)V

    .line 827
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mResCare:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v27, v0

    const v28, 0x7f070076

    invoke-virtual/range {v27 .. v28}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v27

    move-object/from16 v0, v19

    move-object/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 828
    const/16 v27, 0x1

    move-object/from16 v0, v19

    move/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setIndeterminate(Z)V

    .line 829
    const/16 v27, 0x0

    move-object/from16 v0, v19

    move/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    .line 830
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    move-object/from16 v27, v0

    const/16 v28, 0xa

    move-object/from16 v0, v27

    move/from16 v1, v28

    move-object/from16 v2, v19

    invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    move-object/from16 v27, v19

    .line 832
    goto/16 :goto_0

    .line 835
    .end local v19           #progressDialog:Landroid/app/ProgressDialog;
    :pswitch_c
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v27, v0

    invoke-static/range {v27 .. v27}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v11

    .line 836
    .local v11, factory:Landroid/view/LayoutInflater;
    const v27, 0x7f030002

    const/16 v28, 0x0

    move-object v0, v11

    move/from16 v1, v27

    move-object/from16 v2, v28

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v21

    .line 837
    .local v21, textEntryView:Landroid/view/View;
    const v27, 0x7f09000f

    move-object/from16 v0, v21

    move/from16 v1, v27

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v10

    check-cast v10, Landroid/widget/EditText;

    .line 838
    .local v10, etName:Landroid/widget/EditText;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v27, v0

    invoke-virtual/range {v27 .. v27}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceMode()I

    move-result v27

    const/16 v28, 0x1

    move/from16 v0, v27

    move/from16 v1, v28

    if-ne v0, v1, :cond_5

    const/16 v27, 0x1

    move/from16 v6, v27

    .line 839
    .local v6, bSecret:Z
    :goto_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v27, v0

    invoke-virtual/range {v27 .. v27}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v27

    invoke-virtual/range {v27 .. v27}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceUID()I

    move-result v22

    .line 840
    .local v22, uid:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v27, v0

    invoke-virtual/range {v27 .. v27}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v27

    move-object/from16 v0, v27

    move/from16 v1, v22

    move v2, v6

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/ReginaPreference;->getWorkspaceNameByUID(IZ)Ljava/lang/String;

    move-result-object v26

    .line 841
    .local v26, wsName:Ljava/lang/String;
    if-eqz v26, :cond_4

    .line 842
    move-object v0, v10

    move-object/from16 v1, v26

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 845
    :cond_4
    new-instance v27, Landroid/app/AlertDialog$Builder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v28, v0

    invoke-direct/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v28, 0x108009b

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    const v28, 0x7f07001d

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    move-object/from16 v0, v27

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setView(Landroid/view/View;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    const v28, 0x7f07001e

    new-instance v29, Lcom/nemustech/regina/DialogCare$22;

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    move-object v2, v10

    move/from16 v3, v22

    move v4, v6

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/nemustech/regina/DialogCare$22;-><init>(Lcom/nemustech/regina/DialogCare;Landroid/widget/EditText;IZ)V

    invoke-virtual/range {v27 .. v29}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    const v28, 0x7f07001f

    new-instance v29, Lcom/nemustech/regina/DialogCare$21;

    invoke-direct/range {v29 .. v30}, Lcom/nemustech/regina/DialogCare$21;-><init>(Lcom/nemustech/regina/DialogCare;)V

    invoke-virtual/range {v27 .. v29}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    new-instance v28, Lcom/nemustech/regina/DialogCare$20;

    move-object/from16 v0, v28

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/DialogCare$20;-><init>(Lcom/nemustech/regina/DialogCare;)V

    invoke-virtual/range {v27 .. v28}, Landroid/app/AlertDialog$Builder;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v27

    invoke-virtual/range {v27 .. v27}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v9

    .line 883
    .restart local v9       #dlg:Landroid/app/Dialog;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/DialogCare;->mDialogArray:Landroid/util/SparseArray;

    move-object/from16 v27, v0

    const/16 v28, 0xb

    move-object/from16 v0, v27

    move/from16 v1, v28

    move-object v2, v9

    invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    move-object/from16 v27, v9

    .line 884
    goto/16 :goto_0

    .line 838
    .end local v6           #bSecret:Z
    .end local v9           #dlg:Landroid/app/Dialog;
    .end local v22           #uid:I
    .end local v26           #wsName:Ljava/lang/String;
    :cond_5
    const/16 v27, 0x0

    move/from16 v6, v27

    goto/16 :goto_2

    .line 456
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_1
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_0
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_a
        :pswitch_b
        :pswitch_c
        :pswitch_7
        :pswitch_8
        :pswitch_0
        :pswitch_9
    .end packed-switch
.end method

.method public getPackageBroadcastReceiver()Landroid/content/BroadcastReceiver;
    .locals 1

    .prologue
    .line 431
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare;->mPackageBroadcastReceiver:Lcom/nemustech/regina/DialogCare$PackageBroadcastReceiver;

    return-object v0
.end method

.method public popDialog(I)V
    .locals 1
    .parameter "type"

    .prologue
    .line 449
    iput p1, p0, Lcom/nemustech/regina/DialogCare;->mCurrentDialogType:I

    .line 450
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0, p1}, Lcom/nemustech/regina/ReginaLauncher;->showDialog(I)V

    .line 451
    return-void
.end method

.method public registBroadcastReceiver()V
    .locals 4

    .prologue
    .line 407
    new-instance v1, Lcom/nemustech/regina/DialogCare$PackageBroadcastReceiver;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/nemustech/regina/DialogCare$PackageBroadcastReceiver;-><init>(Lcom/nemustech/regina/DialogCare;Lcom/nemustech/regina/DialogCare$1;)V

    iput-object v1, p0, Lcom/nemustech/regina/DialogCare;->mPackageBroadcastReceiver:Lcom/nemustech/regina/DialogCare$PackageBroadcastReceiver;

    .line 408
    new-instance v1, Landroid/content/IntentFilter;

    invoke-direct {v1}, Landroid/content/IntentFilter;-><init>()V

    iput-object v1, p0, Lcom/nemustech/regina/DialogCare;->mPackageIntentFilter:Landroid/content/IntentFilter;

    .line 409
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mPackageIntentFilter:Landroid/content/IntentFilter;

    const-string v2, "android.intent.action.PACKAGE_REMOVED"

    invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 410
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mPackageIntentFilter:Landroid/content/IntentFilter;

    const-string v2, "android.intent.action.PACKAGE_ADDED"

    invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 411
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mPackageIntentFilter:Landroid/content/IntentFilter;

    const-string v2, "android.intent.action.PACKAGE_CHANGED"

    invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 412
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mPackageIntentFilter:Landroid/content/IntentFilter;

    const-string v2, "android.intent.action.PACKAGE_REPLACED"

    invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 413
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mPackageIntentFilter:Landroid/content/IntentFilter;

    const-string v2, "package"

    invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V

    .line 414
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    iget-object v2, p0, Lcom/nemustech/regina/DialogCare;->mPackageBroadcastReceiver:Lcom/nemustech/regina/DialogCare$PackageBroadcastReceiver;

    iget-object v3, p0, Lcom/nemustech/regina/DialogCare;->mPackageIntentFilter:Landroid/content/IntentFilter;

    invoke-virtual {v1, v2, v3}, Lcom/nemustech/regina/ReginaLauncher;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 416
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    .line 417
    .local v0, intentFilterFroyo:Landroid/content/IntentFilter;
    const-string v1, "package"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V

    .line 418
    const-string v1, "android.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 419
    const-string v1, "android.intent.action.EXTERNAL_APPLICATIONS_UNAVAILABLE"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 420
    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    iget-object v2, p0, Lcom/nemustech/regina/DialogCare;->mPackageBroadcastReceiver:Lcom/nemustech/regina/DialogCare$PackageBroadcastReceiver;

    invoke-virtual {v1, v2, v0}, Lcom/nemustech/regina/ReginaLauncher;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 421
    return-void
.end method

.method public selectAddEditDialogType()V
    .locals 2

    .prologue
    const/4 v1, 0x1

    .line 905
    iget-boolean v0, p0, Lcom/nemustech/regina/DialogCare;->mIsEditTabSelected:Z

    if-ne v0, v1, :cond_0

    .line 906
    const/4 v0, 0x2

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/DialogCare;->changeDialogType(I)V

    .line 910
    :goto_0
    return-void

    .line 908
    :cond_0
    invoke-virtual {p0, v1}, Lcom/nemustech/regina/DialogCare;->changeDialogType(I)V

    goto :goto_0
.end method

.method public setRGWidgetRowCount(I)V
    .locals 0
    .parameter "rowCount"

    .prologue
    .line 435
    iput p1, p0, Lcom/nemustech/regina/DialogCare;->mRowNum:I

    .line 436
    return-void
.end method

.method public unregistBroadcastReceiver()V
    .locals 2

    .prologue
    .line 424
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare;->mPackageBroadcastReceiver:Lcom/nemustech/regina/DialogCare$PackageBroadcastReceiver;

    if-eqz v0, :cond_0

    .line 425
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    iget-object v1, p0, Lcom/nemustech/regina/DialogCare;->mPackageBroadcastReceiver:Lcom/nemustech/regina/DialogCare$PackageBroadcastReceiver;

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 426
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/nemustech/regina/DialogCare;->mPackageBroadcastReceiver:Lcom/nemustech/regina/DialogCare$PackageBroadcastReceiver;

    .line 428
    :cond_0
    return-void
.end method
